package ua.races.dom.analyzerDirector.decoratedAnalyzer;

import ua.races.dom.analyzerDirector.HorseRaceDocumentAnalyzer;
import org.w3c.dom.Element;
import ua.races.vo.HorseRace;
import ua.races.vo.HorseRace;

import java.util.ArrayList;
import java.util.List;

public class DecoratedHorseRaceDocumentAnalyzer extends HorseRaceDocumentAnalyzer{

    private List<HorseRace> horseRaces = new ArrayList<HorseRace>();

    @Override
    public List<HorseRace> getEntities() {
        return horseRaces;
    }

    @Override
    public void buildList(Element root) {
        super.buildList(root);
        horseRaces.addAll(entities);
    }

}
